[1m

NAME[0m

     [1mfstat[0m - display complete list of currently open files



[1mSYNOPSIS[0m

     [1mfstat[0m



[1mDESCRIPTION[0m

     [1mfstat.com[0m is a program to display all of the currently open files

     and devices known to the system.  It also shows length, current

     offset, number of handles referring to this file, drive or device

     type, and program which opened the file.  The standard devices

     CON, AUX, PRN, etc. are also listed since they use file handles.

     The program might be useful for diagnosing "too many files open"

     type messages, since it will show what files are in use by TSRs

     in addition to those opened by a foreground program.  It works by

     using DOS service [4m52H[0m, the "list of lists" interrupt, which

     returns pointers to most of the internal DOS kernel tables,

     including the file tables.  It should work for all DOS versions

     2+, although only 3+ can find out the name of the program which

     opened any given file.  There is some version specific code for

     4.x and it is possible that this may not work on all systems

     since the contents of the system tables are not fully documented.



[1mSEE ALSO[0m



[1mBUGS[0m

     This seems to work, but it would be nice if this information were made

     "official" instead of needing to rely on the usenet "interrupt list"

     for the necessary information

     It is usually not possible to retrieve the name of a shell (such as

     command.com) so it is listed as "-shell-".



[1mAUTHOR[0m

     Richard Brittain (richard@calvin.spp.cornell.edu)

